package service

import (
	"context"
	"video-api/internal/model/input"
	"video-api/internal/model/out"
)

type IContentService interface {
	GetBannerList(ctx context.Context, param *input.BannerList) ([]*out.Banner, error)
	GetTagsList(ctx context.Context, param *input.TagList) ([]*out.Tags, error)
	GetCategoriesList(ctx context.Context, param *input.CategoriesList) ([]*out.Categories, error)
	GetShortDramaTagsList(ctx context.Context, param *input.ShortDramaTagList) ([]*out.ShortDramaTags, error)
}

var contentService IContentService

func ContentService() IContentService {
	if contentService == nil {
		panic("IOrderService is not initialized")
	}
	return contentService
}

func RegisterContentService(s IContentService) {
	contentService = s
}
